## 需求：1-100偶数累加和

# 方法一：条件判断
i = 1
result = 0
while i <= 100:
    if i % 2 == 0:
        result += i
    i += 1

print(result)

# 方法二：计数器控制
i = 0
result = 0
while i <= 100:
    result += i
    i += 2
print(result)